package com.xyoto.takeawayUser.enums;

/**
 * @author coderFu
 * @create 2021/10/1
 *通用返回枚举
 */

public enum ShoppingEnum implements Code {

    /**
     * 商品相关
     */
    SHOPPING_ID_IS_NULL(2001,"商品id不能为空"),
    SHOPPING_INFO_IS_NULL(2002,"该商品没有详情信息")
    ;


   private int code;
   private String msg;
    ShoppingEnum(int code, String msg){
        this.code = code;
        this.msg = msg;
    }


    @Override
    public int code() {
        return this.code;
    }

    @Override
    public String msg() {
        return this.msg;
    }
}
